Fix bug with drag+drop and editor paragraphs

Technically, there's a coding standard line about checking for `undefined`: https://make.wordpress.org/core/handbook/coding-standards/javascript/#type-checks (although a comment on that page also notes that the examples are not themselves standards-compliant).