Reformulate the if condition in tls_process_new_session_ticket