event/opdl: fix dereference before null check