fix NPE when content is null
Merge branch 'master' into jetty7
Merge branch 'jetty7' into heroku