bugfix - crash caused by empty undelivered_msgs list when message is delivered after creating new chatwindow

git-svn-id: svn://localhost/project_picapica/trunk@305 fb96df88-216d-11de-830c-f3023f12d8ac