There should be no output in child_mode

After 7d741e76dc a knitted child still has its output directed to a file. This patch removes that behaviour by checking `child_mode()` as well as `is.null(output)` within the `knit()` function.