Think it was safe to be given a shot of hep b vaccine that was not refrigerated for 2 hrs just prior to injection? Can I get another shot right after?

Yes,yes. There are studies showing that the vaccine retained its potency after more than a week at normal human body temperature. www.ncbi.nlm.nih.gov/pubmed1534639.the storage at 36f to 46f is recommended but warming to room temperature before use decreases the discomfort to many patients.