Thomas flagged for hugging referee after touchdown