Bug 880842 - Guard against null temporary drawing surface r=mattwoodrow

--HG--
extra : rebase_source : e6bf619b17c641ed33438ad43c1b0ba085a366b0