BZ1081848 KnowledgeAgent keeps rebuilding kbase from cached files when G...

...uvnor is down and a client restarts

Test case and fix.