[MNG-5613] fix NullPointerException when error occur during project dependency graph creation