diff --git a/includes/DeployPlan.inc b/includes/DeployPlan.inc
index 5a2286e..8de73cd 100644
--- a/includes/DeployPlan.inc
+++ b/includes/DeployPlan.inc
@@ -142,7 +142,9 @@ class DeployPlan {
           $this->processor->deploy($deployment_key, $endpoint, $lock_name);
         }
         else {
-          throw new DeployPlanException(t("The plan @plan can't be deployed because the endpoint @endpoint is invalid.", array('@plan' => $this->name, '@endpoint' => $endpoint_name)));
+          if ((int)$endpoint !== 0) {
+            throw new DeployPlanException(t("The plan @plan can't be deployed because the endpoint @endpoint is invalid.", array('@plan' => $this->name, '@endpoint' => $endpoint_name)));
+          }
         }
       }
       foreach ($endpoints as $endpoint) {
