Fix nested selectors  when using nested and bubbled media queries. #1678