Added better error checking to NTriples parser.