fix error on popup-delete when char-before return nil

When make popup on empty buffer, `popup-delete` errors.
The reason is `char-before` returns `nil`.