Fixed PHP notice on missing user object