Bug 832117: Check that the referent root is nonnull. r=roc a=blocking-b2g