Remove existing sourceMappingURL comment before adding correct one
Created by: felixfbecker
Fixes #2423 (closed)
Tested by publishing an extension locally and checking the served bundle.
Didn't write a test because there is none for this function yet and I don't know how to mock the parameters of this function.