Hide the spinner and show failure message if photo data is null

When we fail to load the photo and the data for the photo is null, we
should hide the spinner and show the failure message. This happens if
you're loading from the network and airplane mode is enabled.

Bug: 8407579
Change-Id: Id473cead577f614df2cc6b09898f6048cccf5965
diff --git a/src/com/android/ex/photo/fragments/PhotoViewFragment.java b/src/com/android/ex/photo/fragments/PhotoViewFragment.java
index 6702bd8..174fc10 100644
--- a/src/com/android/ex/photo/fragments/PhotoViewFragment.java
+++ b/src/com/android/ex/photo/fragments/PhotoViewFragment.java
@@ -329,8 +329,7 @@
                 enableImageTransforms(false);
                 break;
             case LOADER_ID_PHOTO:
-
-                if (result.status == BitmapResult.STATUS_EXCEPTION) {
+                if (result.status == BitmapResult.STATUS_EXCEPTION || data == null) {
                     mProgressBarNeeded = false;
                     mEmptyText.setText(R.string.failed);
                     mEmptyText.setVisibility(View.VISIBLE);