More robust handling of invalid media ranges.