Patching bug in static resource handler where it did not close the input stream