[DF-3901] Fix of asserts after shader reload.