Bug 981621 - Guard against null GrContext r=gwright