Do not render if there is nothing to do.
Fix incorrect return value of end_render().