That is because when the script is evaluated in the sandbox, all possible known values are not known. The value is applied to the incident after the script is run as a result of potential changes made by the script. At that point, python is no longer involved so there is no opportunity to catch an error like this.
Ben
------------------------------
Ben Lurie
------------------------------