fn loaded_schema(schema: &Option<Schema>) -> Result<&Schema>
Returns the loaded schema, or an error if there is none.