Fix callback called 2 times on Node

The recent versions of Node (node-canvas) call onload on the elements.