Devices for preventing non-intended contact of spray heads or nozzles with foreign bodies