Set flash in test session when necessary.

`to_session_value` returns nil when empty.