Bug 901852 - [sms][mms] don't run the time header scheduler if the page is hidden

- call TimeHeaderScheduler at right time
- add related tests