Fix undefined offset error in Gravity Forms