regressions introduced by 53f5f9c
* 3c5b61a fix only wrong state

This commit fixes state *and* lastCheck - updateStateAndLastCheck hits
mongo to read check
Merge pull request #233 from obazoud/refactoring_wrong_state

 fixes state *and* lastCheck