fixes possible NPEs and IllegalArgumentExceptions
Merge pull request #605 from Catrobat/fixNotificationTests

fixes possible NullPointerExceptions