Bug 964537 - Fix intermittent access through a null pointer. r=dmajor