WCM-199 fix error when a category with that name already exists
WCM-200 fix issue with selectors
WCM-200 actually, this code is not needed anymore (acording to @jbalsas)
WCM-199 use different exception types