Fix bug in LessCompiler where error were not handled correctly.