MediaSet: Fix unref function

Object were not released correctly if they where not in any session

Change-Id: Ie241ff8efd8ff48395ca469905cfeeb502f66014