Fixed parse error when svg has surrounding whitespace