fix flatMap/flatMapLatest in case the function returns a Property instead of an EventStream
build js