activityentry: fix wrong attributes used for 'target' lookup
(cherry picked from commit 7bd57b83d0c16fafbc53dc26794b5360b18a4410)