return error on lookup of non-existing doc