Fixing checks for whether rulesets and media blocks are printable. Moved media query bubbling code back into util.cpp now that I fixed the linker error I was seeing.