Bug with nested media queries. Fixes #1615