Fix and test case for EZP-22322.

Fix and test case for EZP-22322: REST API: Content Versions request fails when content version has an internal version status.