Fixed a bug that could cause a NullReferenceException to be thrown when signing up with OAuth.