Fix #371: Validation of quads at Graph.addN() doesn't work as expected

In addition to the validation issue, a semicolon (;) sign is required at the end of each INSERT statement to separate them from each other.

Tested with OpenRDF 2.7.10.