Backport "GlobalActions: Add null checks to onServiceStateChanged" from CM10.1

can potentially cause a fatal NPE.

Backport from CM10.1 by Daveee10