Check that the region exists before trying to select-all...