Fixed null ptr ex when unit dies during flanks