[[ Bug 12726 ]] Avoid to dereference a nil stack pointer on copying an object
Merge pull request #1580 from runrevsebastien/bugfix-12726

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