Bug 837373 - Check for valid favicon before scaling it. r=mfinkle a=akeybl