ec2 module fails when state is not absent

tagged_instances is initialised in a scope not visible
when state is not absent.
Merge pull request #5988 from willthames/fix_ec2_state_not_absent

ec2 module fails when state is not absent