Fix #1443 Fatal Error: JUser::getType
Merge pull request #1445 from xillibit/28d5afc63de6581c35cf3abb10a6532847b1c7c9

#1443 Fatal Error: JUser::getType