Avoid crash on null intent in OnActivityResult()