Fixed an internal error when an assembly is referenced more than once
Fixed an internal error when there are errors in task parameters