Bug fix when writting a 3D nifti volume, starting from a 4D NIFTI HEADER.