If the expected value of a cell is zero in a goodness of fit test (I'm assuming you really mean goodness of fit, where the fit is to a theoretical distribution, not another observed distribution) then there are two possibilities:
You also observed this value zero times. Just discard the zero expected value and try again. Zero observations is the only value you should get with zero expected value.
You observed this value more than zero times. In this case your null hypothesis is obviously wrong, because this value has a nonzero probability.