Bug 1082963, Patch 1: Check rv before reading isNull, r=smaug.