App Runs Only If Internet is available.

Added simple If condition and network available bool check value in the
start of the application. So that it won't throw exception if net is not
available.