What you have described is not all that unusual. Since the foam is going out, not in, the risk of contamination is basically nil. You need to watch out that your airlock doesn't clog - there are many stories of what can happen if too much pressure builds up in your fermenter, all are messy and...