On some indefinite theta functions related to McKay--Thompson series attached to $M_{24}$