Add test for catching errors during toCSS execution, such as undefined variable
Wrap root.toCSS call in a try-catch block, sendErrorResponse if an error was caught