Fix for Collection extract method updates targetElement object

Fixes #2574