Fix for null cert error on second submit.
Merge pull request #56 from msweaver/CONN-231

Fix for null cert error on second submit.