Trigger a "resource-error" event on resource loading failure

refs #649 - thx @brandon-bethke-neudesic