Ticket #5073: Don't crash upon invalid do-while loop.
Merge pull request #198 from simartin/ticket_5073

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