When generating a statement run, it includes statements even if there are no transactions which are outstanding and the balance is zero. This happens when you are running a statement but have Include future dated payments ticked in Settings (and where the payment is after the statement date).
Need a further condition to suppress statements from generating if the balance is zero.