If it appears to the governing body that any demand presented to it for allowance has been assigned or contracted for, the governing body shall reject it and the same shall be forfeited.