don't trust lookup.isCompletion()
(cherry picked from commit ffcb263)