adding check for pair being undefined
Merge pull request #17 from nicola/pair-patch

Brick action with no trigger or action raise error on attribute change