Fix flash messages because...

 * Sometimes flash messages is a String.
 * Sometimes flash messages is an Array.