Cannot retrieve facts via API v2

After upgrading to Foreman 1.7.4 I cannot retrieve facts via API v2.

curl -sk
"https://user:password@foreman/api/v2/api/v2/fact_values?search=facts.state%3Dselected""

returns:

{
"total": 0,
"subtotal": 0,
"page": 1,
"per_page": 100,
"search": "",
"sort": {
"by": null,
"order": null
},
"results": {}
}

However, api v1 is still working:

curl -sk
"https://user:password@foreman/api/v2/api/fact_values?search=facts.state%3Dselected""

{"node2":{"state":"selected"},"node58":{"state":"selected"},"node57":{"state":"selected"}}

Please tell me if this is expected behavior (documentation says that it
should work).