check if STDOUT is defined in plaintext.php to avoid notices (will now also prevent line wrapping when not on a shell, e.g. for browser output), refs #1308