Bail early when updating a FAILED stack.

This will avoid both destroying the evidence for the cause of the
failure, and avoid waiting for something that can never happen.

Change-Id: Ic744e82e622dfb15f8caa935f12b4e2de209c044
Merge "Bail early when updating a FAILED stack."