Do not load apps when upgrade is needed

This prevents routes like "core/js/oc.js" to automatically load apps and
trigger their update prematurely.