added a fix to crash when sn/dt are not in pairs in entry//def in returned xml