fix #9430: do not enable copy to layer if nothing to copy