Fixed bad method call for module resource compilation
Add check for file existance before adding dependencies.xml to DI compiler for modules and site dependencies