Fix EZP-22730: /url/view/ shows wrong status for objectversions

Fix proposed by Paulo Bras in issue. Confirmed on current git and 4.7.
Merge branch 'EZP-22730-urlview-wrong-status' of github.com:glye/ezpublish-legacy into EZP-22730-urlview-wrong-status