(#19906) Wrong error from "upgrade" with JSON output when module already installed
Merge pull request #1764 from superseb/superseb/19906-modulefacerendererror

(#19906) Wrong error from "upgrade" with JSON output when module already installed