Fix an issue where a data tasks error is silently lost