[PDI-10745]: Fixed NPE in password-related tests
Merge pull request #542 from mattyb149/PDI-10745

[PDI-10745]: Fixed NPE in password-related tests