fix throwing ClosedWatchServiceException in QuerySetWatchService.shutdown
Fix NPE when query set by specified path doesn't exist.
fix NPE in MingoTemplate