correcting a stack overflow exception
this is because "getImportedNames" sometimes returns names that belong
to the current bundle (not sure why?). To avoid that, we test the URI to
avoid loading the same bundle over and over