MDL-46904 core_task: Gracefully handle rubbish entries in the tasks table.