Support XCTest as product type

Support XCTest as product type and don't raise an exception by access to method `.first` of NilObject, if the product type of a target has no known symbol type, instead return just nil.