Fix #1605: shared nodes between areas causing hang.
Code format.
Merge pull request #1617 from laurentg/unconnected-P+R

Fix #1605: shared nodes between areas causing hang.