Fix divide by zero in compositing transparent event into transparent buffer