Streams: validate needed tuple paths in flatMap against valid input paths