Fix WebHook IsDirectory always false