script: fix undefined error.

Fixes an undefined error in Script decoding.