Compatibility with OpenRDF-Sesame 2.6.5. Replace assert with HTTP responses.