Fix Issue 12640 - Avoid fallthrough diagnostics when the last case/default statement in a switch failed semantic analysis.