[utils] Allow None in remove_{start,end}