[Console] fixed regression when calling a command foo:bar if there is another one like foo:bar:baz (closes #8245)
Merge branch '2.1' into 2.2

* 2.1:
  [Console] fixed regression when calling a command foo:bar if there is another one like foo:bar:baz (closes #8245)