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.
Merge pull request #1 from mi3ll/fix-no-type

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