Fix for issue #618: Exception after crash

https://github.com/Catrobat/Catroid/issues/618