Corrected a LUA error

Removed a LUA error that occurred when the pet unit didn't have an
energy type