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

https://jira.ez.no/browse/EZP-22730
Fix proposed by @pbras  in issue

The current code is from 9fcace08 which is from 2006, and contains lots of changes. This particular change does not seem related to the main purpose of the commit, which is to add alphabetical navigation. 
The code assumes that `object.versions[object.version-1]` always exists, which is not the case when versions are removed, nor when the current version is 1 (the funny thing is that both cases were
previously handled, and this commit removes it). The result is that false or null is returned,
which evaluates to `STATUS_DRAFT`.