Beams list bugfix

Fixed the bug that caused the editor to crash if beam that was between
non existing nodes was selected from the beams widget.