Only calculate errors for a page when its the right mime type.