Show flash messages even if flash type is a string.

cherry-picked 392d4fe83fd65f4e6b3109677957daaf27d7ae20 to fix #721