TAJO-1026: Implement Query history persistency manager.
Fixed NPE when there is no history directory.