Only select fields we need in WikiPageEntityRevisionLookup

Also avoid joining page if not needed.

Change-Id: I765b68e768ba1bc6ad1f59707b2df1e54bcaf10b
(cherry picked from commit 0859ecfc400c6fe1985221e4167d58c1041c944b)