On line 97 of the checkout success page you have your trigger:
if (("" == "")) {
I see the cart is empty when you get the blank emails, so you can probably just update that to:
if ((!$eCart1->EOF())) {
And that will prevent them from sending out. I'm not exactly sure what would cause that intermittently, but this should be a viable solution.