fix uncatch error

when tree.toCSS() throws an error，the try catch from line 76 to 137 couldn't catch it