[ticket/349] Correctly allow editing of link with ID 0

Fixes #349