Fix error cases caused by `errorCb` not existing.