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

I'll need to send you a CLA...
Our convention is to name such variables `ret`.