Fixes #4089: Fix "getExecutionsByNode" query

http://www.rudder-project.org/redmine/issues/4089