(bug 62634) Fatal exception "DatabaseBase::makeList: empty input for field rev_id" on Special:Contributions

Patch should fix fatal on e.g. https://www.mediawiki.org/wiki/Special:Contributions/Quiddity

Bug: 62634
Change-Id: I9ed1486cd203a324e24c1f62d0f38d2e0d95cc30
(cherry picked from commit c824df70f8ce85315ade77d20e3fd2885ac878a4)