[#364] raise error when previous hash is None + fix indentation
Merge pull request #366 from JahPowerBit/develop2

[#364] raise error when previous hash is None + fix indentation