Fix when no array is returned from a controller. Introduced in recent organisational commit.