Prevent a crash during the update of the macro or favourite list

Signed-off-by: olshevskiy87 <olshevskiy87@bk.ru>