fix(profile-example): only set profile when a doc exists