Make ComponentLoader capable of handling errors, refs #260