ws: Fix minor issue found by coverity

Because asserts can in theory be disabled, we should have a
break statement here.