[lnst] fix crash in xml attribute handling method