Update background.js

when closing tabs, check first current broadcast is in incognito mode or not
Useful when broadcasting in both incognito and non-incognito modes