[BUG #8223] Check for empty selection when replacing multi selection

This is a fix for a problem I got, i've got it documented here: http://bugzilla.qooxdoo.org/show_bug.cgi?id=8223