[bug][33758] Backport JUser::getInstance(0) fix from Joomla 3. Fixes #3619