fix for material editor that incorrectly displays error about object not exposing materail interface