Don't call XWalkPreferences.setValue() multiple times (fixes #14)