[fix] JFactory::getUser() should always return a user object. Fixes #811