Steps to reproduce:
1. Bring the scheduling service implementation down, e. g. while rebuilding the index
2. Ask the scheduler REST endpoint for the number of agents
The endpoint is logging that the service is not available, then it is returning an empty list instead of a 403.
Merged into 1.4.x with rev 15775.