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