[BZ-1080564] avoid to try to fallback to the MinimalPomParser if the InputStream to be parsed has been already closed
(cherry picked from commit b3806dd8168a2e7236917ec03978974865402410)