add needUpgrade() check to addQueuedTask()
Merge pull request #6828 from owncloud/dont_add_queuedtasks_during_upgrade

add needUpgrade() check to addQueuedTask()