I should have started with testing with the query service but since this was working in the API in 1.5 I was expecting to find it in the 5.1 cloud API as well. This may still be worth a support request to validate if the cloud API has a bug.
Christophe.