Add onerror handling for img/video loading.

the mp4 video isn't supported in Chrome and Firefox, so this error handling code path is triggered in texture-upload-size.html