added None type check to qt.widgetToMayaName, None crashes maya