Wrap nil-calling code in begin/rescue block to trap real error
Merge pull request #1 from moneytree/hotfix/pgerror-3-2-11

Wrap nil-calling code in begin/rescue block to trap real error