Fix stats calculation in web UI

We previously took care of this on the pool page but the error was
present on the prefix and VRF page too, which is now fixed!

Truly fixes #553.
Merge pull request #556 from plajjan/553-fix-stats

Fix stats calculation in web UI