Make party_required test works with None value

issue4297
review13681002