Fix incorrect return instead of continue inside foreach

The 'return' here causes swagger to miss valid routes after hitting an
invalid route. The following contrived example demonstrates this:

[Route("//test")]
[Route("/test")]
public class Test {}