Handle the empty case properly.
Merge pull request #1300 from kaltura/IX-9.17.0-url-managers

Handle the empty case properly.