SW-826: only insert predecessor/successor links into the radb when needed, thus preventing unneeded error log lines about duplicate keys