The response body is really empty, as opposed to a JSON response indicating that there are no search results.
As a side effect, the web UI throws a TypeError, as it expected a valid response, such as {"term":"blah","results":[]}.
I can’t replicate this behaviour. Can you try updating to the latest version of Stardog (5.0.5.1)? If the problem still persists, can you share some data and queries so I can try to replicate the problem locally?