Fixed missing flash messages

Flash messages disappeared from main layout because Rails 4 HashWithIndifferentAccess#each was returning Strings for keys.