Fix Issue 4374 - Required do-while ending semicolon

Deprecation -> Error
Merge pull request #3929 from yebblies/issue4374

Issue 4374 - Required do-while ending semicolon