Fix Issue 12640 - Avoid fallthrough diagnostics when the last case/default statement in a switch failed semantic analysis.
Merge pull request #3496 from AndrejMitrovic/Fix12640

Issue 12640 - Avoid fallthrough diagnostics when the last case/default statement failed.