Show correct revision of entity when viewing an old revision

Bug 44661

Change-Id: I906214322ee6dcb32d397e110d2f097f098cc253
Merge "Show correct revision of entity when viewing an old revision" into mw1.22-wmf3