Better handling of invalid columns in models during persist_docs