Fixed a crash when a mercenary warps back to its master

- Issue introduced in 6c066dc6 (that sure was a while ago!)
- Special thanks to Ancyker

Signed-off-by: Haru <haru@dotalux.com>