fix: disambiguate between connected and no-input logic pills
!493 (merged) still didn't fix what it was supposed to. The query builder now re-runs when applying string length or lower/uppercase logic pills again, which causes invalid queries to be sent to the backend. Instead, this PR properly disambiguates logic pills that have their value connected to another pill. Now it finally works as intended :)