handle error_logger is undef in yum_execute_command