Fix undefined index when resource has no rdf:type