calling getstoragestats.php only if a user is logged in because this cal...

...l requires a user to be logged in

fixes #4606 

@karlitschek @PVince81 @icewind1991 @bantu THX