Update svgToPdf.js

Fixing a default value check which didn't check for the existence of the correct property.