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

Implemented a fix for issue 3337. Added an extra check to see if the flash scope is filled before logging a warning about using the flash scope without a redirect. This prevents the logging of unnecessary warnings.