To use the new task you would have to delete the entire setup and update task then install the task again.
I just tested it and deleted entity and it worked fine.
If you installed the updated task then this rule would look like following:
Or just edit that rule as I just showed and then edit the following script;
var qry = "SELECT e.[Name] FROM [Entities] e JOIN [EntityTypes] et on et.[Id]=e.[EntityTypeId] WHERE et.[Name] = 'Employees' ORDER BY e.[Name]";
var r = sql.Query(qry).First;
Add the extra function below first function as shown.
Those 2 changes is what fixed it. You can do those manually if you want.