added check for missing link in render_link