fix handling of unique IDs in outbox and sentitems in case of non-gammu gateways