Ticket #5073: Don't crash upon invalid do-while loop.