Make MOVED_TO* var generating from RecentChanges working

This patch fixes the generation of MOVED_TO vars from
recentchanges rows.

Change-Id: I6c5471620a0fb5cb78b946fc162ff3d6a30b0e0e
Merge "Make MOVED_TO* var generating from RecentChanges working"