Fix error when accepting the expansion.

When pressing enter to accept an expansion Emacs beeps with an error; enter for the second time accepts it.  This commit fixes that error, and accept it at the first enter key.