Fix NPE in teamed battles.