Fix RDF import for large notes

Re http://forums.zotero.org/discussion/28147/import-of-exported-zotero-rdf-note-misses-an-item-note/

Also included a couple fixes I came across while debugging this.