Update tabId when contentItem changes

Tab and WebPage has one-to-one mapping. Once webpage (contentItem) has changed the matching tab id should be readable that's why I tailored this so that new tab id is set before emitting anything.

But we need to reset tabId to invalid (0) when webpage is null. Will modify a bit.