Fix get_flashed_messages from modifying the session unnecessarily
Fix get_flashed_messages from modifying the session unnecessarily

fulfilio/nereid,riteshshrv/nereid,riteshshrv/nereid,fulfilio/nereid,usudaysingh/nereid,prakashpp/nereid,prakashpp/nereid,usudaysingh/nereid