It's possible, you missed or are in a paperspace layout and not mspacing through, therefore selecting nothing. If you were to set up a trap i.e.
(while (not (setq ent (car (entget "\nblah blah:"))))
(princ "\nYou missed.")
)...
you shouldn't get an automation error.