holoirc: fix AppPreferences being null when service is restarted
holoirc: apparently the user changing the mode can be null as well

* deal with this
* this is most likely when services is changing the mode
holoirc: more mode nullity checks
Merge branch 'release-3.1.0' into develop