[BZ-1080564] avoid to try to fallback to the MinimalPomParser if the InputStream to be parsed has been already closed