Fix bug that ALWAYS added null to the ToolMaterials when using addtoolMaterial(int, ToolMaterial)
Merge pull request #775 from bonii-xx/master

Fix addtoolMaterial always adding null