Not all Exceptions have the `value` attribute
Fix referencing of wrong attribute since recent change in AMI list loading