Add error handling to ResourceIndexer (refs #829)