Fix bug 1529: Give warning when removing unexisting chart