Add undefined checks
Merge pull request #26 from nsue/fix-onBrickKillToOtherClients

Add undefined checks to onBrickKillToOtherClients