Remove empty key and value before send