Moved gui visibility check from GUIRenderer::render_widget to GUIRenderer::render