ws: Fix minor issue found by coverity

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

Closes #515
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>