FindIDom could fail in two different ways - it could return either nullptr or the block itself, depending on the circumstances.
Some users checked one error condition, while others checked the other.
Make it always return nullptr on failure.
This fixes PR26004.