fixed check_energy() to check if animation exists prior to checking its energycost value.
Authored by: sumolx 2008-05-08
Parent: [r1862]
Child: [r1864]