Fix hang when there are no changes in a pipeline