Make XPath and JsonPath handle properly empty docs, use a Stream instead of a byte array, close #974