Fixes #2691: Null parameters will not be included in the generated URLs by `UrlManager`