Bug 895023: Null-check SVG image document's root frame, before dereferencing it. r=seth