fixes #2404 - prevents 404 when updating invalid name used as id