Fix indentation to two spaces.
RT #94369: Don't warn when undef is passed to setOutput.

Test that setOutput without arguments doesn't cause a warning,
and add a guard check to avoid 'eq' with an undefined argument.