Fixes crash of vtkImageStack when rendering after removing an image
The path always needs to be rebuilt before accessing MTime, otherwise MTime computations might fail (accessing invalid nodes corresponding to a removed image) and make the application segfault.