fixed bug in Mojolicious::Routes::Pattern where an unnecessary slash could be rendered before formats