os_events: verify the $variables['date_id'] is an array/string.
Using reset for the first key in the array.
Merge pull request #3559 from openscholar/3503-date-variable

os_events: verify the $variables['date_id'] is an array/string.