assert lookup exists before finishing it

If the lookup in a test is null, the NPE comes from a weird place that's a little difficult to untangle. This ensures that it's obvious what the problem is

Reviewed at https://rbcommons.com/s/twitter/r/1349/