Revert "Sometimes there might not be a selection."

This reverts commit a73e6e5bd07e07f38ee5295a33d919a92e2e2635.