fix #2949: Npe in history list