fixing an issue with nsnull, null values are sent now correctly to the server