fix for issue U4-4707 - When a mediaitem is selected in the linkpicker, the id is not returned

Currently the id is implicitly set to undefined when a media is selected - that makes the linkpicker unusable in situations where you'd want a id for your selected media in the linkpicker.