Add undefined checks to onBrickKillToOtherClients