Only parse source into a Document when it is a string