Fix Jython test failed due to non-existing variable error message changes related to #1804