TIMOB-13899: Added null check for TiApplication