Fixing intermittent crash when writing to {node_access} table.