Check whether selection isn't empty before trying to get start container.