add more librdf error-checking