Fix: tools: Don't output nodes if they don't have failures.
When failure output is requested with crm_mon -f, skip any nodes that
don't have any failures. Previously, all nodes were being printed out
regardless. This is done by moving the code that counts failures and
the code that builds the operation list out into its own functions.
Having done that, we can check before printing and skip if necessary.