Make it possible to profile queries with multiple NullPipes.
Merge pull request #1710 from chrisvest/profiling-multiple-null-pipes

Make it possible to profile queries with multiple NullPipes.