On Chowla's non-vanishing conjecture over function fields