Fix a bug when a user went to the edit profile page without a profile