Add check for headRev + currentRev both being null.
Refactor StatUtils to be instance based, remove PluginStatUtils.