Steps to reproduce:
1. create a new standalone task
2. set the parent task id ("standaloneTask.setParentTaskId('non-existing')")
3. save the task
--> a NullPointerException will be thrown
Expected behavior:
The case that the parent task could not be found should be handled better, so that another kind of exception will be thrown instead of a NullPointerException