[web] Add asserts to the raw header conversion functions [applied]