Make AuthorizationSet handle null initializers safely.

Change-Id: Ic58bb779c8cb30828ec9f57a1bb5bfe44c59a074
diff --git a/authorization_set.cpp b/authorization_set.cpp
index e2bce14..b3c186c 100644
--- a/authorization_set.cpp
+++ b/authorization_set.cpp
@@ -108,6 +108,11 @@
 bool AuthorizationSet::Reinitialize(const keymaster_key_param_t* elems, const size_t count) {
     FreeData();
 
+    if (elems == NULL || count == 0) {
+        error_ = OK;
+        return true;
+    }
+
     if (!reserve_elems(count))
         return false;