Handle AttributeErrors in plugins better.