Bug 1040230 - Check array length to bail out earlier before creating the deleted info. r=vyang, a=lmandel

--HG--
extra : rebase_source : f4c378ff58be8f75dcd0aa1358770cfc666ec9ac