fix Hook.render_on override

ref http://www.redmine.org/issues/11105