NXP-13679: fix empty document list serialization