Fix issue where focus events would not be fired for newly loaded tabs