Fix deleting of message icons not working - thanks Jorin for the report

Signed-off-by: emanuele <emanuele45@gmail.com>