Check if there is an item selected to update the sensitivity

The 'selection-changed' signal is sent not only when the selection changed from
one object to another but when it went from an object to none selected (and
vice-versa) too.

Change-Id: I689155f045b92f48947e4c59ca2a4b404742d1d7