fix comparison to undefined
Release fix for superfluous tab reloading