Fix undefined reference error in case an entity has zero types. This is the case of a Stanbol find query.
Fix conversion bug without RDFQuery.