Potential fix for late onCreated event

If onBeforeNavigate fires before onCreated, then it would not always
handle the tab correctly.  We now do a quick sanity check for this
condition.