Don't crash when reporting invalid case label value. Fixes #13952