avoiding nullpointer in (offline) sitehistory