Added strict error reporting to chunk loading.

This should help with #1307.