Tried to use unitys eventsystem to set a tag to a clicked gameObject, getting nullReferenceException - C#