Error instead of crash on GetRef of nil object