Bug 828000 - Don't generate the `isNull' local variable if it's not needed; r=bzbarsky