Core: Fix issue #299 - clear checkContext after done using it

I'll need to send you a CLA...
Also, our unwritten convention is to set things like this to `null`.