rest call to return empty string on exception