I assume “Data found:” is being properly logged to the console, i.e. you know this part is being executed?
You are using Tasks (i.e. async/await), where you need process unhandled exception explicitly. If you don’t use the async/await keywords, you need to check Task.IsFaulted and log Task.Exception, otherwise you’ll never know if there was an unhandled exception.
In your case, ContinueWith gives you a task, which you don’t properly check (IsCompleted returns true for faulted tasks), and also returns a new task, which you discard but also need to check.
Besides this, it’s always also possible that the line actually gets executed but something else is immediately deactivating the object again, so it only seems like the line was ignored. Connecting a debugger is usually the fastest way to check if the line is actually executed.