Fix bug 1638: Give warning when removing unexisting chart