Willow I feel quite sure they would be fine (and I have eaten them too!)

LIsteria thrives in a cold /cool environment and the ph needs to be a certain level. Neither of those things are an issue with custard tarts. So, I say pop on the kettle and crack open that tart!