Didn't check in the code, but if `lhs_params` is a `list`, `params` will be `None`.

Maybe `params = lhs_params + rhs_params` instead?