Minor modification to prevent issue if Staged/Unstaged SelectedItems returning null

Prevents issue if for some reason while staging / unstaging files the SelectedItems returns null