Allow to unset header/footer in caption rows (#8990).