To run CheckBlockIndex also on failure was changed in 613c46fe and uncovered the bug #16444.
This pull restores the previous behavior, where CheckBlockIndex
was only called on success (return true
in https://github.com/bitcoin/bitcoin/blob/a6cba19831da9de6c5f968849d07c2a006557fe4/src/validation.cpp#L3440) and never on failure.