Adds allow_nil for media_type validation for backward compatibility
Merge pull request #55 from ChrisBr/fix_validation_for_deprecated_events

Adds allow_nil for media_type validation for backward compatibility