fix issue #7228 ec2_vol crash

Fix for https://github.com/ansible/ansible/issues/7228