consider entries on inactive journals for the general ledger report

On a customer's instance, the entries that used an inactive journal (before
it was deactivated) were not considered in the general ledger; this fixes
the behaviour.
As this is not going to be included upstream, please make your new lines PEP8 compliant (80 cols limit).