Check for pre-existing pdf mime type (fixes #24).