Fix the error handling in ERR_get_state: