Keep the query valid when the select list changes.

Fixes intermine/intermine#424
Release v2.10.0