Adding checks

Change-Id: Ib0fcc6cdaec98de074804c64b8b381e043f21215
diff --git a/xos/synchronizer/pull_steps/pull_pods.py b/xos/synchronizer/pull_steps/pull_pods.py
index 89c970b..0fe0fc0 100644
--- a/xos/synchronizer/pull_steps/pull_pods.py
+++ b/xos/synchronizer/pull_steps/pull_pods.py
@@ -131,7 +131,7 @@
             return None
 
         slice_name = controller.metadata.name
-        if hasattr(controller.metadata, "labels"):
+        if hasattr(controller.metadata, "labels") and controller.metadata.labels is not None:
             if "xos_slice_name" in controller.metadata.labels:
                 # Someone has labeled the controller with an xos slice name. Use it.
                 slice_name = controller.metadata.labels["xos_slice_name"]
@@ -198,7 +198,7 @@
             # TODO(smbaker): Assumes all containers in a pod use the same image. Valid assumption for now?
             container = containers[0]
             if ":" in container.image:
-                (name, tag) = container.image.split(":")
+                (name, tag) = container.image.rsplit(":", 1)
             else:
                 # Is assuming a default necessary?
                 name = container.image