core: Check for nullptr
* src/edit.c (interact_start, edit_start): Return error if key is null.
This prevents a crash further down the road.