fix(views): allow numeric 0 values to show on user and group profile

fixes #5262

- [x] Commit message needs to make sense
- [ ] Address reviewer comments
We have a similar function here https://github.com/Elgg/Elgg/blob/c90102be3fea3875a75cfd1b60f58b9d2eadff2b/engine/lib/elgglib.php#L1415, but if we need this, this should go in a separate ticket / PR