Fix output in consoles
Fix sketch standard output in runner
The editor might be null
Merge pull request #2827 from aengelke/console-fix

Make stdout/stderr write to the console of the active sketch