Bound get-entries to what we have.

Fixes #138.

See also: https://codereview.appspot.com/144970043/