1125132: Label does not change to Attaching on Fristboot progress bar

Better check for changing title of window
Moved state change so it would work in GUI and Firstboot
Merge pull request #1003 from candlepin/wottop/1125132

1125132: Label does not change to Attaching on Fristboot progress bar