Fixed NPE on missing application context service