How do you handle undefined or missing useQuery results with Typescript? - TanStack