Fixed error message formatting - stacktrace is not always returned from
solr.