Implementing popup warning if no items are selected

This fixes issue #4767 by implementing a popup to warn if no items have been selected.