Possible fix for the undefined object error when retrieving an App injector