Fix app crash when ledger bounds is null (no data).