fix for #160 - check for duplicate annotation types must not fail if we have no ID for the type yet. In this case, we just compare the strings.