Fix crash when hitting Reload Shaders quickly twice in a row.