Fixes #5341: Makes sure elgg.session.user is an ElggUser instance
Merge pull request #5392 from mrclay/5341_2

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