back to 0.37 version: make cook_promt_if_neccessary() guarantee that saved_rl_state.cooked_prompt != NULL