CLOUDIFY-2074 removed redundant code that caused an ArrayIndexOutOfBoundsException.