Streams: fix flatMap's excessive nesting (some ops like getOrElse can't be nested in the flow)