Ignore failed AMIs when searching ami_tag_prefix

Previously an AMI with a state of failed would be used if it was the highest numbered AMI with the tag_prefix.