Revert "min/max/avg raise when doc is not found"

This reverts commit 67ef10bba8778f56e94d418386ebaffe11a82c1a.
Revert "first -> first?, last -> last?"

This reverts commit 83e151b32fe8aa6965367b79206a8493a437f447.