recorderendpoint: Check if the url is valid before create the sink

Change-Id: If435445cb7a79fabccefd414e97703b722fc1698