TAJO-1026: Implement Query history persistency manager.

Fixed NPE in querytasks.jsp