Fix getting group '0' from database backend

Fix #9972
Fix isLoggedIn() check for user '0'

Fix #9972