Android: Fixed two crash bugs.

- Fixed crash in preferences fragments; API 19 now requires to check if
the fragment is valid.
- Fixed crash when adding a new equalizer preset.