Bug 934939: Avoid crashing by gracefully handling invalid canvas sizes. r=roc
Bug 934939: Add crash test. r=roc