Added check for sending sourceId only when it's set (currently, only for youtube)