Fix div-by-zero error on zero input for LSS