Fix resolve / reject handlers of sharedPreferences plugin