Issue #2317913 by jhedstrom: Early error handling can result in fatal error (Call to a member function get() on a non-object)
Issue #2350327 by PieterDC, Dave Reid: editor.module should use the same data- attributes as entity_embed.module uses