Fix JSHint issue with _renderToBuffer refactor.

This was introduced with fb098d761137744add367bb53a1c279a4a09ffb9.
Merge pull request #5029 from rjackson/fix-jshint-failure

Fix JSHint issue with _renderToBuffer refactor.