srv-less: Catch exception on toCSS too (#1423)

Fixes #1423.