fix Kitkat crash by implementing isValidFragment in PreferencesActivity