[HttpFoundation] Remove content-related headers if content is empty