Check if the map contains block before trying to set it to air