Fixed assign RADMaterial by name

There was an issue with the method to check if the material is existed
in the library. This is fixed.