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