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.
21 jobs for fix/expired_password_message in 0 seconds
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-Master

passed ERP5.PerformanceTest-Master

00:22:44

failed ERP5.UnitTest-Master

01:51:43

failed ERP5.UnitTest-Master.Medusa

passed SlapOS.Eggs.UnitTest-Master.Python2

00:11:26

passed SlapOS.Eggs.UnitTest-Master.Python3

00:14:21

failed ERP5.UnitTest-Master

02:29:40

failed ERP5.UnitTest-Master

02:11:24

failed ERP5.UnitTest-Master

failed ERP5.UnitTest-Master

02:10:19

passed SlapOS.Eggs.UnitTest-Master.Python2

00:23:22

passed SlapOS.Eggs.UnitTest-Master.Python2

00:09:46

passed SlapOS.Eggs.UnitTest-Master.Python2

passed SlapOS.Eggs.UnitTest-Master.Python2

00:16:45

passed SlapOS.Eggs.UnitTest-Master.Python2

00:29:31

passed SlapOS.Eggs.UnitTest-Master.Python2

00:09:04

passed SlapOS.Eggs.UnitTest-Master.Python3

00:35:02

passed SlapOS.Eggs.UnitTest-Master.Python3

00:29:38

passed SlapOS.Eggs.UnitTest-Master.Python3

00:19:03

passed SlapOS.Eggs.UnitTest-Master.Python3

passed SlapOS.Eggs.UnitTest-Master.Python3

00:13:19