fix: when using convertGridTableToSvg function, if a weight was missing
the function would crash, this has been fixed now