Merge pull request #6491 from jlaska/apt_repository_signing_fix

[apt_repository] Correct check_mode conditional logic