Fixes #3337: made sure 'flash without redirect' warning is only logged when flash is _not_ empty.
Merge pull request #3338 from DennisVis/fix-for-#3337

Resolve #3337: Always generates log warning for flashing with non-redirect status in Dev mode