mdns on resume fix

Please review @g-ortuno 
It's also arguable that stuffing the contents of tryToStartScanning into the initialize method muddies up that method. Even though tryToStartScanning is another method, it's name clearly describes what it does and is a tiny specific utility. The same applies to the just above method initializeScreenStateBroadcastReceiver. These are just differing coding philosophies I suppose.