Resolving the bluetooth problem by setting the null value for the
adapter and boardcastReceiver
Resolving the bluetooth problem when checking the task's compatibility
as well