Validator to check if affectedVersion is released always returns false

I'm setting up a simple scripted validator on the create step to ensure that the Affected versions are released, however the validator always fires even for affected versions which are released, and I'm having hard time figuring out where I'm going wrong.