don't call done twice for thrown errors inside parameterized routes

fixes #1995