Only transform non-empty objects to API
Only transform non-empty objects to API

We need to transform some of the data before we send it to the API
but we should also check that the key has value before transforming
it.

This ensure we don't add properties to the object that we send to
the API if they are empty.

uktrade/data-hub-fe-beta2,uktrade/data-hub-fe-beta2,uktrade/data-hub-frontend,uktrade/data-hub-frontend,uktrade/data-hub-frontend