extended try-catch to catch an Unexpected NullPointerException
Merge pull request #1034 from Catrobat/cat-931

[CAT-931] extended try-catch