FIX: Discard old search results if search term changes when moving posts to a different topic (PR #14117)

This also fixes an incorrect usage of debounce.

Meta topic: Odd search behaviour when moving messages (as a staff member) - bug - Discourse Meta.

GitHub