Minor fix in status updater
diff --git a/erpnext/controllers/status_updater.py b/erpnext/controllers/status_updater.py
index 2e865b4..1188be5 100644
--- a/erpnext/controllers/status_updater.py
+++ b/erpnext/controllers/status_updater.py
@@ -68,9 +68,8 @@
 		if self.is_new():
 			return
 
-		_status = self.status
-
 		if self.doctype in status_map:
+			_status = self.status
 			sl = status_map[self.doctype][:]
 			sl.reverse()
 			for s in sl: