input-method-relay: Only submit preedit when not empty
We checked for NULL but need to also check for the empty string as otherwise multiple clicks confuse the client and e.g. GTK4 looses text when double clicking with a pointer.
Closes: #381 (closed)