Issue #1683964 by hefox, odegard: Entity Reference Error (array_flip, undefined target_id) when using autocomplete and no entites selected