INSERT: check for NULL pointers in dxf_insert_write().

Signed-off-by: bert <bert.timmerman@xs4all.nl>