Add check if no type of a resource is given

If the selected resource does not have a rdf:type fall back to normal OntoWiki behaviour.
Adjust indents