Properly find an open end node with 'R'.

There were issues with interpreting the label object and in recognizing
other termination tags like "soma" and "uncertain continuation" which
do not contain the word 'end'.