Fixed error generated when appending error messages to @env['rack.errors']