Fixes #5933: Login, user event code can use elgg_get_logged_in_user_*()