Fixed error when user does not have a UserProfile