another when condition syntax error
Merge pull request #1208 from edx/jarv/defined-syntax-error

another when condition syntax error