ci: fix failed hook leading to unset exit code
Created by: jhchabran
We've been seeing transient failures with Honeycomb and the previous retry threshold was apparently not enough.
I also fixed a bug where it's possible for the exit status to be unset when a hook failed, leading to a weird error.
Test plan
CI will tell with the holy green build.