do not access wifi manager or bluetooth when not available.
Merge pull request #10517 from nullaus/b2g-desktop-debug-failures

do not access wifi manager or bluetooth when not available, r=kaze