Revert "Prevent a segfault when writing a config file containing 'rotate' option"

This reverts commit 1d661827e59926ffe406c0615a8bc36f528b1b0a. Upstream accepted a different fix. See next commit.
Prevent a segfault when writing a config file containing 'rotate' option