Allow Clone Brush (duplicateop) to use other layers
Before this commit, Clone Brush was supposed to
use the last layer the source was placed on
(or the current layer if the last layer was
unaccessible or the source wasn't placed yet).
In reality it used always current layer.
This commit fixes that behaviour.
BUG:401919