fix #11184 - "split way" is splitting an other way instead of the selected. The case where the selected node is both one end and an intermediate node of the selected way was not taken into account. Add test case.