endless loop fix for W_GetSelection when selection is owned by the app itself