Fix verifyAuthTypeCookie

User::getByUserID returns null if user wasn't found, so isError is called
on a non-object.

Let's fix this....
Merge pull request #322 from mlocati/fix-verifyAuthTypeCookie

Fix verifyAuthTypeCookie