Fix divide-by-zero error by not attempting to demultiplyAlpha when alpha = 0.