Merge pull request #66 from salt-formulas/andrewp-invitem-refactoring-fix

Fix invquery references bug introduced in refactoring