It could also have been ice (rather than just foam) from the external fuel tank which stores the liquid hydrogen and oxygen.