fix NPE if content of rest response is null