Fixes a bug Routes, which is was causing some api methods to be ignored completely

See the following method

```php
class Test {
    /**
     * @param string $p1 {@from query}
     * @param string $p2
     */
    function bug($p1, $p2) {

    }
}
```
Before this fix `/test/bug/{p2}` api is not created at all

After this fix it can be accessed similar to the following example

    /test/bug/2?p1=1