Fix download log lookup by email/id

Fixes issue #2402