fix crash and log error when CyanogenMod Privacy Guard is enabled

Because GPG is all based on the Contacts stuff, GPG will not work when CM
Privacy Guard is enabled since it blocks the app's access to Contacts.

fixes #3225 https://dev.guardianproject.info/issues/3225