ARM: fix unterminated if statement