[BUGFIX] Restore libxml error handler state after clearing
[FIXTURE] Preserve @media if necessary
Fixed #1