[MSHARED-655] ArtifactInstaller check for integrity of parameters null, empty collection, being a directory o Followup refactored code.