Don't crash when unreachable code contains unreachable constant switch. Fixes #14587