preferences: fix PreferenceProvider.merge
method
#12275
Merged
PreferenceProvider.merge
method
#12275