Issue #3378088 by mstrelan, agunjan085: Invalid references to contextual_pre_render_links in contextual.api.php (cherry picked from commit e72fa7b3)