Fix rules display bug.

JS did not like the fact that list_machines was not populated when we asked
for all rules and monitored machines.