[BUGFIX] default last in switch not detected correctly

If a default statement in a switch case statement contains a
continue, return, throw or die / exit this will be handled
as a scope_closer.

Fixes: #56264 (on forge)