Removed buggy assertion

> Task objects' id was not checked as intended