Improve parser to be more strict and throw for invalid media queries