Preferences: Do not fail when pref does not exist on deletion

Fixes #6001