Fixed djb2_hash with proper code.

After reviewing the code here prior to the changes I made I realized what the intent was. It should now be working as originally intended, but with code that is neither making assumptions (that 0 == false), nor generating warnings. It should also be more clear as to what the intent is.