fixes InvalidStateError when appending to SourceBuffer