Conditionally render the gutter for the showLineNumbers option

Fixes #2707