Browser compatibility and optional parameters in routes

When an optional route part isn't present, force argument passed to the callback to be undefined