Prevent crashing while staging/unstaging files

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