Fix `@custom-media` parsing

Previous test didn't check that the rule value was correctly terminated.