Add null or undefined check when dispatching an action

Signed-off-by: Brandon Tilley <brandon@brandontilley.com>
Throw when dispatching an action with no `type`