make ripe160 preconditions be consistent like the other hashing functions

other hashing functions do not have this check.

ran all tests and they all passed.