Bug 803568: Check for Cairo surface creation failure. r=bas