fixing bug 4381

method getCompoId(componentName) has been fixed to return only available components (ie not a removed one or placed in a removed space)