Correct incorrect relief of charitable donations in loss making periods

Charitable donations in a loss making period are incorrectly relieved as dedcutible expenses which is incorrect.

The only current workaround I can see it to make an indetical corresponding entry in the 'Not deductible part' of the Charitable Donation section which shouldn't be necessary as the software should know this.