Fix exception with update_context_links()

Seemed to appear only in dashlets