Fixed a minor bug in `Graph.from_rdkit`.