Previously this threw a NullPointerException for untyped path elements. Enabled printing of stack trace for errors within invoke().