changed handling of definitionless modules in a resource