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.