Prevent double execution of onLoad event on Raster.