Fix for prerendered content sometimes prepended by 'null'

Don't prepend document.doctype to the prerendered content if it's null.
Merge pull request #13 from nikolas/null-doctype-fix

Fix for prerendered content sometimes prepended by 'null'