Bug 1064855 - Handle zero area destination rects during image snapping. r=roc

--HG--
extra : rebase_source : 8b0c9cb123577fc19359036f466a12aab7148443