Canvas: Prevent execute img.onload after a cleaning.

See the conversation on the Users list: [Canvas issue when using externalGraphic](http://osgeo-org.1560.x6.nabble.com/Canvas-issue-when-using-externalGraphic-td5071099.html)