fix issue #7228 ec2_vol crash
Merge pull request #7230 from binarytemple/fix_for_issue_7228

fix issue #7228 ec2_vol crash