Deal with undefined history_len key