Update Generate-substitutions.py

Fixed the no-op code path.