clean up null properties of the card object before it is returned