gaia: select non-zero bins for fitting

previously this had a bug