Fix retrieving if blocks in render_form tag