Only run some globals for smarty if loggedin

* Do not check for round shares if user is not logged in
* Will prevent a long page load for new users trying to register
* Only needed on statistics page that is not available to guests