Fixed an issue that could lead to some read operations on /api/v5/actions/ and /api/v5/sources/ to return 500 while rolling upgrades are underway.