Well currently you have a chance of having your rest interrupted in the wilderness, but it is low. I could write a script that would record your pre-rest health and then check for food. If you don't have food it could then apply damage, although it would be easier to just keep you from resting without food.
Maybe I should just leave it alone!