You are going to be boiling it, so the little amount of bacteria that MAY have taken will be boiled off. You should be fine, I have once mashed the night before, but wort in a bucket, and woke up the next morning to start boil. My beer turned out fine, and I'm sure yours will too.