adds a check for SourceBuffer.updating state in SourceBuffer.updateend event listener