Have you trying putting the content of this method to TiPlatformHelper.initialize() ? That way you don't need to do null checks in the getter.