Fixed null/undefined console error on loading a blank application