math: Restore toleration of unexpected characters in an expression
Prior to !2056 (merged) we ignored unexpected characters in an expression that otherwise can be parsed. In order to preserve compatibility with projects that accidentally used this, convert the error to a warning.
Edited by Brad King