FIX, coalescestreams incorrect nesting.
Added test
Merge pull request #4088 from jdfreder/coalfix

nbconvert: Fix coalescestreams line with incorrect nesting causing strange behavior

closes #4015