Fix `render_to_string` when called via manually instantiated controllers

closes #14125