Fix template assertion when opening a session.

Resolves https://github.com/rails/rails/pull/16234#commitcomment-7115670

@senny @rubys
@senny Instead of creating a new instance variable for the array, I decided to use a constant instead. Any thoughts?