Don't open inline editor on an empty id attribute

For #5685.