Fixed some bugs in the pipeline:

- Amp process was not creating a task (this was introduced a couple of commits back by accident).

- AMP jobs failed if no MECQ stage was present in the pipeline.

- MASS analysis jobs were left to run in the background whilst selector tried to analyse their results.  No have forced selector to wait for all analysis jobs before starting itself.