Fixed a bug which caused an error to be thrown when non-SC objects were used as menu items in other parts of an application.