Fixes #5341: Makes sure elgg.session.user is an ElggUser instance