Fixes ZEN-13580

First make sure powershell does not access null array.  In ZenPack, make sure we do not have an IndexError
I don't think this can raise IndexError since db_match is already confirmed True.