Added exception to catch malformed history entries