Ensure health is in bounds

This ensures the health value is in bounds for the array. Addresses
#1544.