Fix for MAGN-264

Paste could not find custom nodes using nickname. Use the functionId
instead.