"tab instanceof ChromiumTabInfo" is always true as we currently only support Chrome :-)
So the original code was always picking up the first tab in the browser, regardless whether it is the empty tab or not.

The fix replace || with && thus making sure that this code picks up the tab ONLY if it is the empty tab.