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