engines/rados: fix error with getting last instead of first element from list