Update osc_get_flash_message with dropMessage option

To allow checking for pending messages without dropping them
Useful e.g. to adjust front-end when Flash messages are displayed
Merge pull request #1401 from emanwebdev/patch-36

Update osc_get_flash_message with dropMessage option