Fixing plugin startup problem when pollingWait is initialized in onStart()