Fix crash when there are no attributes
Fix crash when there are no attributes

ronichoudhury-work/resonantlab,ronichoudhury-work/resonantlab,ronichoudhury-work/resonantlab,ronichoudhury-work/resonantlab