Check for success in loadArrayBuffer's onload handler.

From the terrain branch...

Previously, an HTTP error (404 for instance) would still resolve the promise instead of rejecting it.