Prevent hashing of empty string passwords