config: When exiting a trigger, the profile won't be active if the user has reset the config, so just ignore that exception.

We do log a debugWarning just in case this occurs when we *don't* expect it.
Fixes #3622.
Merge commit 'fetch_head' into jpbranch