accounting: Fix "Account Type must be set" constraint not always applying

This constraint had a TALES expression making it not apply on invalidated
accounts, but during the transition invalidated -> validated, when the account's
consistency is checked, the account is still in invalidated state, so that
check was ignored, making it possible for users to validate an account without
and account type.
Status Job ID Name Coverage
  External
running ERP5.CodingStyleTest-Master

31969:49:30

running ERP5.UnitTest-Master

31969:49:36

running ERP5.UnitTest-Master.Medusa

31969:49:45

running SlapOS.Eggs.UnitTest-Master.Python3

31969:49:36