Minor fix on checking getEmitOutputWriter