CmsAutoSetup: Fix ArrayIndexOutOfBoundsException

(minor fix) The code must verify that the args array have any elements before addressing the first one.