Fix bad display of hg prompt status even on error