fix potential crash with automated workers
ai: make war declaration decision slightly more sensible