[Bug 1033339] Fix latest_version in product view.

This is a partial revert of 64d896f1d7524a4b45648a10ee2d99988eb49e83. I mistakenly removed these lines before, and now I'm putting them back.

r?