render_model and render_model_block elements are not hidden in structure mode

Fix #2710