avoid possible NullPointerException in menu

When PrivacyService is not registered, the menu is not inflated.
Normally, the `onPrepareOptionsMenu` won't be called, however, it may be called.