Cannot find elements when XPath expression is null

I could get the stacktrace of the IllegalArgumentException, which is the root cause of the problem.

See