Update task scheduler API spec using service workers extention API.
Proposing to remove hasPendingMessages() API from the spec as by using
service worker we may not have a scenario to use this api.