Check for a null history item to avoid crashing.

The history item may be null if this page is loaded through loadDataWithBaseURL
so we cannot count on the item being non-null.

Bug: 2073490
1 file changed