Fixed possible null pointer exception when printing log message. Also fixed accidential deletion in startStopAppOnClick()