too busy middleware should return JSON. Fixes bug#994767