Explosives can deteriorate and liquify, especially if exposeed to water.
I doubt if gas would ever be used in mortar shells because the range is so low.
Water could cause hyrdrolysis and release of nitric acid. Other deterioration products are possible. All are at least mildly toxic, but nothing like nerve poison.
