handleDoubleClicked in RDSplitter checks if the index argument is less than zero or bigger than count