This causes an `undefined method `[]' for nil:NilClass (NoMethodError)` error when used with a layout file without a `session` key.