avoid ActivityNotFoundException when Intent is empty