Check, if the User object was created before accessing functions on it
Check, if the User object was created before accessing functions on it

Bug: T114686
Change-Id: I9855a15ebbdcadfee72999834391e83e60e95bbb

wikimedia/mediawiki-extensions-GoogleLogin,wikimedia/mediawiki-extensions-GoogleLogin