#595 - Fix issue with error icon not being shown in IE8.

Caused by an OpenLayers 2.10 bug where the loadend event isn't being generated when there are errors loading tiles in IE8.

Fixed by correcting the order of onImageLoadError and onerror event handler execution