Get the insertion of flash messages safer.