Reproduction of EJSON error "Got exception while polling query: TypeError: Object 0 has no method 'substr'"