[update_engine] handle NULL returns from strdup

grepped for calls to strdup, added code to handle NULL gracefully.

BUG=chromium-os:6589
TEST=unit tests

Change-Id: I95f07d591177711351abe268f88dbe0e24d39637

Review URL: http://codereview.chromium.org/3437019
diff --git a/dbus_service.cc b/dbus_service.cc
index d5bf13f..677dbc8 100644
--- a/dbus_service.cc
+++ b/dbus_service.cc
@@ -77,6 +77,10 @@
 
   *current_operation = strdup(current_op.c_str());
   *new_version = strdup(new_version_str.c_str());
+  if (!(*current_operation && *new_version)) {
+    *error = NULL;
+    return FALSE;
+  }
   return TRUE;
 }