Fix NPE when user hashing algorithm is unknown