Remove most exceptions from getNode() (and variants)

Performance improvement is (very) signficant. I can provide callgrind logs upon request (ask me on IRC).