[NEXUS-5831] Fix assertions about existing files in P2 repos

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>