Yes the tags seems to be missing.
This is strange because there are explicit methods to handle them (see OemWriter line 516).
Could you check in a debugger in your case if these methods are called or not? The expected call sequence is writer.write() →writeSegment() → writeSegmentContent() → startData() and endData()