Add check on android SDK location to prevent NPE.

androidSdk can be null if ANDROID_HOME is not defined, so the
extra checks prevents an NPE.
Also added the location of the SDK in the error message when
the location does not exist.