Minor fix to resolve runtime errors when using AssetLibrary.removeAllAssets and the material is dispose before items that use it.