Null and empty check for print method inside of HttpResponse.