how to modify withlatestfrom operator in rxswift to wait for the first event of the trigger if the trigger has not emitted any events if trigger has atleast one event behave