Fix branch to invalid basic block.