Fixed specification non-compliance when handling remote media errors. Contributed by @nex.