Fix crash when userID is still nil and a push notification token is set