Make sure lab has id before assigning tasks
Compare changes
@@ -199,12 +199,6 @@ public class LabService {
@@ -212,8 +206,15 @@ public class LabService {
Lab did not yet have an id when creating the tasks.
When creating the tasks we use a lab which has already been saved such that it already contains an id.