fixup for test/trace (support events with len of 0)