Ensure health is in bounds

This ensures the health value is in bounds for the array. Addresses
#1544.
Merge pull request #1576 from Protuhj/expected_userdata_1544

Ensure health is in bounds