Added a warning in case a nifti is not properly constructed.