added helper method to reset incorrect contentType for PDFs. #10213