If you have a parameter in an SQL statement in the Expression Builder, and then delete that parameter (using the 'X' button), the Designer throws an exception.