fixed crash when picking an object instance without a material.