Thankyou this reply really helped!This is just my personal opinion. In this situation is it more important to pray than it is to cover your head. What a loss it would be to deny prayer for the sake of a bit of cloth. So contrarily, it is wrong to not pray due to the lack of a headcovering.
The better question is, "Why should we cover our heads to pray at all?"