If xpath_ctx is null, bail. If xpath_obj is null, bail but free
xpath_ctx.

Thanks coverity!