shell/scripting: Consider current activity in `desktopForScreen`

This fixes "Change Wallpaper..." in System Settings unable to open the
config dialog when the current activity is not the default one.

BUG: 452561


(cherry picked from commit f994e130)
2 jobs for Plasma/5.24 in 11 minutes and 43 seconds (queued for 42 seconds)