Fix a crash when trying to change priority for finished bundles