Fix error on undefined tab.url when close tab