Fixes ZEN-13580

First make sure powershell does not access null array.  In ZenPack, make sure we do not have an IndexError