fixing NPE, when no http-entity is found.