Utility method to drop properties with null value