Compare to null in js tabs instead of empty string