Fix sorting bookmarks by m-time and c-time when visited time is missing. Improve logging.