pdr: pldm_entity_association_tree_destroy_root(): Exit early on bad arg

Also identify the condition in the doxygen commentary in the header.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I706dc4364424163e51d6d2b17168f3dba280522b
diff --git a/include/libpldm/pdr.h b/include/libpldm/pdr.h
index e656ced..b05085f 100644
--- a/include/libpldm/pdr.h
+++ b/include/libpldm/pdr.h
@@ -530,6 +530,8 @@
 /** @brief Destroy all the nodes of the entity association tree
  *
  *  @param[in] tree - pointer to entity association tree
+ *
+ *  There is no tree to destroy if tree is NULL.
  */
 void pldm_entity_association_tree_destroy_root(
 	pldm_entity_association_tree *tree);