catch NullPointerException in StageListener
Merge pull request #1128 from Catrobat/fixStageListener

catch NullPointerException in StageListener