[android] Added Intent check incase the intent is null.