UP-4223 Fail gracefully in handling profile selection events.

This is a tweak to merged #450 to make handling the `ProfileSelectionEvent` safe.

Failure to persist a profile selection is bad (and is an error, and should be logged so that the portal administrators can address it.)  But failing to persist a profile selection shouldn't fail the entire portal experience for the user.