Fix Issue 10199 - labels cannot be used without a statement
Merge pull request #3022 from yebblies/issue10199

Issue 10199 - labels cannot be used without a statement