[Fix #7698] Attributetable crashes on close when valuemap is used