Bug fix: test if cal structure is valid before using
Bug fix: test if cal structure is valid before using

miguelfmorales/FHD,EoRImaging/FHD,wenyang-li/FHD,miguelfmorales/FHD,wenyang-li/FHD,EoRImaging/FHD,wenyang-li/FHD