Update the map reference in each minified file.
(cherry picked from commit ebc7899ba1ba6e8306066b5bd4d3e14f0d2d8aad)
Fix #13789: Don't throw when module === null. Close gh-1269.