Fixed editing profile when no profile exists yet.