You are correct, this is an error. It turns out to be due to the context mishandling negation of constants and variables, so -x + x
is also incorrectly allowed.
I have made a pull request to resolve the problem. You could get the updated contextLimitedPolynomial.pl
file from there and use that to resolve the issue until the change is part of an official release.