Trim empty properties from statement before preparing it to be sent. 

Note: this is not ready to be merged as I have not yet tested it. 

The problem this addresses is that some LRSes do not accept null values for properties, so this function iterates through the object and deletes any empty properties.