Fix closing the tab when there is no backwards history
Fix closing the tab when there is no backwards history

We can't check history.length to determine whether to go back or to
close the tab because it includes forward history.

dguo/pawblock,dguo/pawblock,dguo/pawblock