I think those asserts are bogus if buffer contains invisible text or images.
Attach a file by drag & drop or click to upload