Prevent NPE on processResultFromGallery when intent comes null

There are cases when onActivityResult returns with Activity.RESULT_OK as resultCode but the intent in null. This produce a NullPointerException trying to get the data from the intent in the processResultFromGallery method.