Fix ImageSpace relocation direction check. am: e37b791590
am: 0f09a9c43b

Change-Id: I342e4d963662c829f7d4bcebe550d8639fe1b411