fixes an issue with matching routes which require params, when we have none

@henrahmagix @perry @maxpeterson @grahamgilchrist