Fix AI crash

when it tries to target no longer existing unit (typically
soldier who captured a building, as there is no death notify).

Signed-off-by: kat <kat@lua.cz>