fix KT-5645: 'continue' inside 'do...while' statement works as goto ...

This commit fixes this issue.