Resolve promise on image load error.

The promise was neither resolved nor rejected.