Initialize rank selector on the right element

The commit 153f8a247e0ccf0c4e0044f8839623e659caee65 made the backend and the
frontend templating system emiting different HTML for the rank selector in a
statement view.

Change-Id: I059a3a0803f8bac60d97bbc8e57c18d7442c2bcb
Merge "Initialize rank selector on the right element"