Fixed up typo in conditional that was causing all PDF output ot be sent to browser - regardless of the output selected