Fixing an exception happening when a task has no associated browser.