simplify network connection check to avoid null pointer exceptions
use NetworkInfo.isConnected() to check internet availability
Merge branch 'enhancements'