fix unlinking of not nodes in phreak
(cherry picked from commit 82e187c208adbf1a19aaa14c17eee1bbb3b08d27)