Adding query type check for PhishTank and None return handling for queryn