Proper CSS parsing exception handling