MT#8419 get_nodename: return 'self' if not found

Fix for CE. But we should use the proper nodename at network.yml insead
of using 'self' and having expections for that.