don't add begin, end certificate to document that already have them

Passport-SAML successfully consuming certificates that already formatted. But it adds extra "-----BEGIN CERTIFICATE-----" and "-----END CERTIFICATE-----" to it, so certificate becomes invalid. 
This pull request fixes it.