Issue #777168 by Berdir, effulgentsia: Fixed Notice: Undefined property: stdClass:: in profile_user_presave().