An error will only manifest when actually evaluating the
XPath:
Note that you won't run into the error when the XPath predicate's not
applied i.e. contains() is not even called:
So calling with the wrong arg number is an XPath runtime, not an XPath
compile time error.
Indeed you wouldn't know if there's an error or not at compile time: