Fix custom media query rules not working

Otherwise default rules are always used regardless of whether there are custom rules