Fixed warning error when there are comments in media queries

If there are comments in media queries, this task fails with the following warning: "Warning: Cannot call method 'join' of undefined".

This pull request fixes that.