[[ Bug 12726 ]] Avoid to dereference a nil stack pointer on copying an o...

...bject