Great catch. It looks like this would have broken lots of things if a user had an odd selection when trying to indent a list.