ignore setting properties with null values (but still don't allow null keys).