Check for linkinfo before iterating

- If we don't check for this, when running **get_linked_docs** on Document that doesn't have the meta ("__linked_with") then it will return error since linkinfo is None