fixing a bug related to writing the gll stuff to the netcdf file

when using only the wavefields to a certain depth and mynum=0 not having any wavefield to
dump