Bug 917996 - OOM follow-up fix for assertion. r=nbp

--HG--
extra : rebase_source : a1e739e5ad53002f0dc44f2ce2b02ff8c05168a5