Adapted event data handler to accept unexpected data types in the response