Fix error with getenergy(all)
Don't throw stack overflow when function doesn't return anything