Bug 1037226 - Don't crash when surface allocation fails in BasicCompositor. r=Bas

--HG--
extra : rebase_source : d6e655c642256ddeddb471726f40f37b98d3ac0f