Fix #11382 (keep check state of the moved layer)

Cloning of the existing node will preserve the check state, in addition
it will keep other custom properties that would be lost prevously.