Add an assert_valid function to nrmllib

The plan is to use this function in the export procedure; then in the engine export tests we will make sure that the XML generated by the calculators is valid. See 
https://bugs.launchpad.net/oq-engine/+bug/1167324