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