Fix for autorender in 3.1

The 3.1 branch introduced a regression.
The toolbar is always rendered even if auto_render is disabled.