[Routing] fix url generation for optional parameter having a null value