FIX: Check for component only if there is a Type selected

If there is no Type on the Link, an 'Array to String' error will pop-up, since using DataObject->has_one with no argument outputs all has_one components of the DataObject.
FIX: One more reference that didn't check for Type
Merge pull request #10 from mi3ll/fix-no-type

FIX: Check for component only if there is a Type selected