JENKINS-22658 Stages with cyclic dependency error

Will now detect and send error to view