There is no taint of getting associated with a demi-god in this instance, as the act was not intentional.
To a similar query in the previous issue of Sudarshanam, we had said that when one is asked for contributions to build temples for demi-gods, one can treat this as one among many expenses.
As you were not asked specifically to contribute for the kainkaryam of a demi-god and as you had not contributed specifically for that demi-god, no taint will result.