Checks to make sure that an Event has a type before checking type.

The Dividend event is currently missing 'type', causing the type
check to fail.

TODO: Add a type to Dividends.