Fix error when access to location data of compiled node

Compile cloned node when check for presence of declaration