Avoid error when inserting device if snmp_target is not set for whatever reason