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