cylc poll: fix submission failed handling

This fixes the behaviour of `cylc poll` for `submission failed`.

@matthewrmshin, please review.