Fix to catch when "svg" is undefined