Allow the removal of incomplete query clauses.

refs openhealthcare/elcid#252