Fix nth error type (cherry-pick).
Merge branch 'v1.13.x' of github.com:rethinkdb/rethinkdb into v1.13.x