Handling null identity

Currently the TempDataProvider doesn't allow HttpContext.User.Identity
to be null and throws a NullReferenceException when it occurs. I added a
null check to avoid this.