If there is not an exit block, we should not try unify the loops. Instead we should just return. Fixes #165252