fix crash in follow movegen when targetpos can't be determined