Fix generated code when option linenums is missing

If option `linenums` was not in config, it was generating an invalid code block and not executing code highlighting at all.