Make sure the console is only rendered once

If both controller and view helpers are present, the view helper takes
precedence.