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