diff --git a/lib/base.php b/lib/base.php
index fd4870974fe1b2b8b456a1cd4f868865da5f531a..c95eac0d2f70126c0f884166368dff4be19a45e2 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -472,7 +472,7 @@ class OC {
 		// This includes plugins for users and filesystems as well
 		global $RUNTIME_NOAPPS;
 		global $RUNTIME_APPTYPES;
-		if (!$RUNTIME_NOAPPS) {
+		if (!$RUNTIME_NOAPPS && !self::checkUpgrade(false)) {
 			if ($RUNTIME_APPTYPES) {
 				OC_App::loadApps($RUNTIME_APPTYPES);
 			} else {