Fix small bugs with collecting nanopubs