Camera2: Remove settings preferences only once

Browsing through camera settings crashes on devices with only
a back- or a front facing camera. Fix NPE on removing preferences
that are already removed.

Change-Id: I00b4549e18ea44975bf795da9384892d8ef2ee16
Merge pull request #1 from CyanogenMod/cm-12.0

Camera2: Remove settings preferences only once