templates/homepage: Fix counters display when storage is empty
This is a simple fix for the counters display in the webapp homepage.
When the storage is empty (for instance after booting the docker env), the
/api/1/stat/counters
endpoint returns an empty dict.
So handle that corner case to avoid a JavaScript error when homepage is loading.
Migrated from D2913 (view on Phabricator)