A bug fix build!
Looks like the state settings (foreground, background) don't work when the default setting for new tab positioning is chosen. Thats fixed now. Bug found by xushuiquan.
Also added some error checking code to look out for invalid tabs like the Dev Tools window.