I believe that the parserFormulaUpToConstant.pl file was changed several months ago so that such error messages would not be suppressed. That might only be in the develop copy, but the version I'm running does produce the desired message in for your code sample.
WeBWorK Problems
Answer checking not working in new problem
This forum has a limit to the number of forum postings you can make in a given time period - this is currently set at 10 posting(s) in 1 day