Bug 957668. Protect against a null frame. r=nullcheck CLOSED TREE