The operator was only accessible from search menu, and this was wrong. The operator must be only used in object mode.