Reassign context to undefined because CoffeeScript needs a var keyword

Fixes #4100