Correctly check for a svg based document