optimize_kl: Fix resume

Gordian Edenhofer requested to merge fix_resume into NIFTy_8

Merge request reports