Fix potential crash with sys_move_pages