Fixes #3956: Debug toolbar was affecting flash message removal