Fix labelled break and continue statements

Upstream fix for https://bugzilla.mozilla.org/show_bug.cgi?id=958347.