fix possible runtime exception
Merge pull request #1039 from Catrobat/catchPossibleRuntimeException

catch possible runtime exception