Updated the check for history to use the correct field on the workout
object.