kontrol/handlers: return an error if the id is empty