Fix error checking for rethinkdb 1.5