Do not generate invalid IR in dgc2stack pass.

Branching to a block that starts with a landing pad
instruction is illegal.

GitHub: Fixes #524.