MNG-5742 fixed duplicate plugin realms when extensions=true

Signed-off-by: Igor Fedorenko <ifedorenko@apache.org>