Fixes TestSharedPreferences behavior when using putString or putStringSet with a null value. Default Android behavior is to remove the object for that key.