Updates helper so it will not fail when non-svg object is passed