Resolve promise on image load error.

The promise was neither resolved nor rejected.
Merge branch 'develop' of https://github.com/cedricpinson/osgjs into develop

Conflicts:
	js/osgDB/Input.js
Fixed merge error.
img.onerror resolve right promise.
merge mockup