I just ran into this missing null check when testing combat tracker stuff in v12. The next line does check for null but thats too late.
Triggered by undocking the combat tracker before the first round / before a combatant has become active.