Check that the password conf section is present before trying to add validation rules — some users don't have it.
What I did
- Added a guard
Implications
None
Setup
Log in as a user who has access to admin/accounts, but can't change passwords
How to test
Load the admin/accounts screen. Observe the lack of a JS error.