Fixed bug with nested media queries inside a mixin. Closes #1686