Protection against null values in maps.