EntityLookup should fail on bad revision

This makes EntityLookup be stricter about bad revision IDs.

Also, remove the $revision parameters from getEntities() calls
where it was still left.

Change-Id: I37a5fecc0ee22fc92c28a8fcd1810a4559767db1
Merge "EntityLookup should fail on bad revision"