-- Fixed error in Detection Units and Types, when the last unit is destroyed in teh collection, it would crash the logic. -- In the event processing, no error to be generated if the target static is not found.