check for idx2 >= 0

add check for idx2 >= 0, to address https://github.com/shinout/interval-tree/issues/2